<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script type="text/javascript">
        function onlk (){
            alert("onclick静态注册！")
        }
    </script>
</head>
<body >
    <button onclick="onlk()">按钮1</button>
    <button onclick="onlk()">按钮2</button>
    <button onclick="onlk()">按钮3</button>

</body>
</html>